package com.hb.trade.api.push.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * describe:
 * 推送数据配置
 * @author zhongdl
 * @date 2022/05/12
 */
@Configuration
public class PushDataConfig {

    /**
     * 推送配置源url需要配置门户的url
     * 在hbpush.yaml配置文件文件中 如: http://local.fzznkj.com:58095/#/
     *   # 推送配置源url需要配置门户的url
     *portal:
     *   url: http://local.fzznkj.com:58095/#/
     */
    public static String portalUrl;

    @Value("${portal.url}")
    public  void setPortalUrl(String portalUrl) {
        PushDataConfig.portalUrl = portalUrl;
    }
}
